<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>buyfunshop</title>
		<meta name="customer-service" />
		<meta name="promotion-tip" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta property="og:type"          content="website" />
	<meta property="og:title"         content="【buyfunshop】" />
	<meta property="og:description"   content="ช้อปปิ้งง่ายมาก! แพลตฟอร์มช้อปปิ้งที่เน้นผู้บริโภคแฟชั่นสตรี สินค้ามีทั้งเสื้อผ้าสตรีแฟชั่น รองเท้าผู้หญิง กระเป๋าสตรี เครื่องประดับ ฯลฯ จัดส่งฟรีเกิน 899/ดำเนินการเองอย่างเป็นทางการ/เก็บเงินปลายทาง/ระยะเวลาชื่นชมเจ็ดวัน " />
		<meta property="og:image"         content="//yinibuy2.oss-cn-hongkong.aliyuncs.com/729419af-b34f-4126-be31-e36aad7582dd.jpg" />
		<meta property="og:url"         content="www.buyfunshop.com" />		
		<link rel="stylesheet" href="../dists/mdui-0.4.3/css/mdui.css" />
		<link rel="stylesheet" href="../resources/css/animate.css"/>
		<link rel="stylesheet" href="../resources/css/common.css"/>
		<style type="text/css">
			
			
			.mdui-head-nav{position: fixed; top: 0px; left: 0px; right: 0px; width: 100%; height: 48px; line-height: 48px; text-align: center; background: #FFF; box-sizing: border-box;box-shadow: 0 0px 4px 0px #bbb; max-width: 750px; margin: 0 auto; z-index: 1;padding: 0 10px;}
			.mdui-head-nav > span{font-size: 16px; color: #2A363B;}
			
			.mdui-bottom-nav{z-index: 1;}
			
			.template-split{width: 100%; height: 4px; background: transparent;}
			
			.search-order-info-item{margin: 8px 0px; overflow: hidden;}
			.panel{background: #FFF;}
			.panel-header{padding: 12px 8px; box-sizing: border-box;border-bottom: 1px solid #e4e4e4;position: relative;}
			.panel-header-subscript{position: absolute; right: 10px; color: #ff4142;display: flex;align-items: center;top: 12px;font-size: 18px;font-weight: bold;}
			.panel-body{padding: 10px; color: #2A363B;}
			.panel-body ul li{position: relative; line-height: 20px; box-sizing: border-box;}
			.panel-body ul li span{display: inline-block; font-size: 13px;}
			.panel-body ul li .message-key{ color: #6a6a6a; min-width: 60px;}
			.panel-body ul li .message-value{margin-left: 8px;}
			.panel-body ul li .product-image{width: 80px; border-radius: 4px;}
			.panel-body ul li .product-title{position: absolute; left: 90px; top: 4px; color: #2A363B;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;height: 16px;}
			.panel-body ul li .product-skuName{position: absolute; left: 90px; top: 28px; font-size: 12px; color: #bcbcbc;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;height: 16px;}
			.panel-body ul li .product-price{color: #2A363B; font-size: 14px; position: absolute; left: 90px; bottom: 4px;}
			.panel-body ul li .product-quantity{position: absolute;top: 0px;left: 0px;background: #FF3450;padding: 4px 10px 4px 8px;font-size: 10px;line-height: 12px;border-radius: 4px 0px 10px 0px;color: #fff;}
			.panel-body ul li .order-price{color: #FF3450; font-size: 14px; font-weight: 600;}

			
			.search-input-container{padding:8px 0;}
			.search-input{border: 0; color: #2A363B; opacity: 1.0; font-size: 12px; padding: 8px; text-align: center;padding: 12px; font-size: 16px;font-weight: bold;height: auto; border-radius: 4px;}
			.search-input:not([disabled]):hover{border: 0; box-shadow: none;}
			.search-input-button{background: linear-gradient(270deg,#ff4142,#ff4b2b); color: #FFFFFF; cursor: pointer;width: 86%;border-radius: 18px;margin: 0 auto 12px;display: block;opacity: .6;}
			
			.template-module-product-list-horizontal{height: auto;width: 100%; background: #F5F5F5; box-sizing: border-box; display: flex; flex-direction: row wrap;}
			.template-module-product-list-horizontal > .flex-row{height: auto;width: 100%; position: relative; max-width: 100%; box-sizing: border-box; display: flex; flex-flow: column wrap;}
			.template-module-product-list-horizontal > .flex-row > ul{width: 100%; display: flex; flex-direction: column; justify-content: space-between;}
			.template-module-product-list-horizontal > .flex-row > ul > li{display: block; box-sizing: border-box; padding: 4px; }
			.template-module-product-list-horizontal > .flex-row > ul > li > a{display: block; vertical-align: middle; background: #FFF;text-decoration: none;border-radius: 4px;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.image{width: 100%;padding-bottom: 100%;position: relative;height: 0;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.image > img{width: 100%;height: 100%;position: absolute;border-top-left-radius: 4px;border-top-right-radius: 4px;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos{box-sizing: border-box; padding: 8px 8px 16px 8px; }
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos > div.name{font-size: 14px; font-weight: 400; color: #303030;text-align: left; font-family: PingFangSC-Regular; line-height: 20px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos > div.price{margin-top: 8px; position: relative;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos > div.salesVolume{display: inline-block; border-radius: 2px; padding: 4px 10px; font-size: 12px; color: #9F0000; font-weight: 500; margin-top: 10px; border: 0.5px solid #9F0000;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos > div.price > span.salePrice{color: #222222; font-size: 20px; font-weight: bold;}
			.template-module-product-list-horizontal > .flex-row > ul > li > a > div.infos > div.price > span.originalPrice{color: #888888; font-size: 12px;text-decoration: line-through; margin-left: 2px;}

			.mdui-textfield-focus .mdui-textfield-input{border: 0!important;box-shadow: none!important;}


			
			.order_search{background: #9F0000;}
			.order_search .panel-body{box-sizing: border-box; padding: 8% 3%; position: relative;}
			.order_search .search-input{background: #FFF; height: 40px; line-height: 40px; font-weight:normal; text-align: left; padding-left: 30px; font-size: 13px;padding-right: 70px;}
			.order_search .panel-body > img{position: absolute; width: 14px; margin-top: -27px; margin-left: 2%;}
			.order_search .panel-body .search-btn{position: absolute; right: 3%; margin-top: -32px; font-size: 15px; color: #930000; letter-spacing: 4px; border-left: 1px solid #BBBBBB; box-sizing: border-box; padding: 4px 12px;}
			.order_search .panel-body .search-btn:hover{opacity: 1.2;}
			.order_search .panel-body .search-tip{color: #FFF; font-size: 10px; margin-top: 3%; margin-bottom: -3%; display: block;}
			
			.social-info{margin: 0px 8px; border-radius: 8px;}
			.social-info .panel-header{border-color: #F0F0F0; color: #999999;}
			.social-info .social-lists{display: flex; flex-wrap: wrap; text-align: center; justify-content: center; }
			.social-info .social-lists > a{flex-grow: 1; width: calc(100% / 3); padding-bottom: calc(100% /3); height: 0px; box-sizing: border-box; color: #222222; text-decoration: none;}
			.social-info .social-lists > a > img{display: block; margin: 0px auto; height: 24px;margin-bottom: 14px; margin-top: calc(50% - 30px);}
			.social-info .social-lists > a.cus-border-bottom{border-bottom: 1px solid #F0F0F0;}
			.social-info .social-lists > a.cus-border-left{border-left: 1px solid #F0F0F0;;}
			
			.hots .panel-header{font-size: 16px; color: #222222; text-align: center; justify-content: center;background: #f4f4f4; border-bottom: none;}
			.hots .panel-header > i{display: inline-block; width: 8px; height: 8px; background: #9E0000; vertical-align: middle; border-radius: 50%; margin-top: -2px;}
			.hots .panel-header > i.big{width: 8px; height: 8px;}
			.hots .panel-header > i.middle{width: 6px; height: 6px; opacity: 0.68;}
			.hots .panel-header > i.small{width: 4px; height: 4px; opacity: 0.44;}
			.hots .panel-header > span{ margin: 0px 8px;}
			
			.panel-body ul.track-container{font-size: 12px;}
			.panel-body ul.track-container > li{display: flex;flex-direction: column;line-height: 24px;}
			.panel-body ul.track-container > li span{ font-size: 12px;}
			.panel-body ul.track-container > li span.message-key{}
			.panel-body ul.track-container > li span.message-value{}
		</style>
	</head>
	<body>
		<div class="mdui-bottom-nav-fixed mdui-container-fluid">
			
			<div class="mdui-bottom-nav">
				<a href="../item/list.html" class="mdui-ripple mdui-bottom-nav-active">
					<svg t="1586933266838" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8358" width="48" height="48"><path d="M556.586667 159.36l288.490666 183.914667A64 64 0 0 1 874.666667 397.248v392.746667a64 64 0 0 1-64 64l-224-0.021334V597.333333H448v256.64l-213.333333 0.042667a64 64 0 0 1-64-64V391.68a64 64 0 0 1 30.272-54.4l287.530666-178.346667a64 64 0 0 1 68.138667 0.426667z" p-id="8359" fill="#ff4142"></path></svg>
					<label class="language" language="shou_ye"></label>
				</a>
				<a href="../item/catalog.html" class="mdui-ripple">
					<svg t="1587007028153" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7377" width="24" height="24"><path d="M256 734.101333v64H170.666667v-64h85.333333z m597.333333 0v64H298.666667v-64h554.666666zM256 493.184v64H170.666667v-64h85.333333z m597.333333 0v64H298.666667v-64h554.666666zM256 252.245333v64H170.666667v-64h85.333333z m597.333333 0v64H298.666667v-64h554.666666z" p-id="7378" fill="#2A363B"></path></svg>
					<label class="language" language="fen_lei"></label>
				</a>
				<a onclick="customerCart.openCart();" class="mdui-ripple">
					<svg t="1586933455682" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9017" width="48" height="48"><path d="M330.666667 768a53.333333 53.333333 0 1 1 0 106.666667 53.333333 53.333333 0 0 1 0-106.666667z m384 0a53.333333 53.333333 0 1 1 0 106.666667 53.333333 53.333333 0 0 1 0-106.666667zM94.762667 160h54.741333a96 96 0 0 1 92.906667 71.786667l1.024 4.394666L256.64 298.666667h0.213333l42.88 205.333333L332.224 661.333333h402.218667l61.653333-298.666666H313.813333l-13.376-64h495.68a64 64 0 0 1 62.677334 76.949333l-61.653334 298.666667A64 64 0 0 1 734.442667 725.333333H332.224a64 64 0 0 1-62.677333-51.050666l-60.586667-293.418667-0.405333 0.085333-27.733334-131.562666a32 32 0 0 0-28.309333-25.237334l-2.986667-0.149333H94.741333v-64h54.741334z" p-id="9018" fill="#2A363B"></path></svg>
					<label class="language" language="gou_wu_che"></label>
				</a>
				<a href="../user/index.html" class="mdui-ripple">
					<svg t="1586934464276" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9180" width="48" height="48"><path d="M644.8 581.568l160.64 187.456A64 64 0 0 1 756.842667 874.666667H267.157333a64 64 0 0 1-48.597333-105.642667l160.661333-187.434667c18.922667 11.52 39.466667 20.629333 61.205334 26.944L267.157333 810.666667H480v-128h64v128h212.842667l-173.269334-202.133334a254.613333 254.613333 0 0 0 61.226667-26.965333zM512 149.333333c117.824 0 213.333333 95.509333 213.333333 213.333334s-95.509333 213.333333-213.333333 213.333333-213.333333-95.509333-213.333333-213.333333S394.176 149.333333 512 149.333333z m0 64a149.333333 149.333333 0 1 0 0 298.666667 149.333333 149.333333 0 0 0 0-298.666667z" p-id="9181" fill="#2A363B"></path></svg>
					<label class="language" language="wo_de"></label>
				</a>
			</div>
			
			<div class="panel order_search">
				<div class="panel-body">
					<input class="mdui-textfield-input search-input language-placeholder" type="text" language="qsrddhcx" placeholder="order ..." onkeyup="if(event.keyCode==13) {app.methods.serachOrder();}" />
					<img src="../resources/img/user-search.png" />
					<span class="search-btn language" onclick="app.methods.serachOrder();" language="chaxun"></span>
					<span class="search-tip language" language="chaxun_tip"></span>
				</div>
			</div>
			<div class="template-split"></div>
			
			<div class="search-order-infos"></div>
			
			<div class="template-split"></div>
			
			<div class="panel recommend-list social-info">
				<div class="panel-header">
					<span class="language" language="liao_jie_wo_men"></span>
				</div>
				<div class="social-lists">
					<a class="cus-border-bottom" href="https://www.facebook.com/%E6%A8%82%E8%B3%BC%E5%95%86%E5%9F%8E-111652591152902">
						<img src="../resources/img/user_fb.png" />
						<small class="language" language="FB_zhu_ye"></small>
					</a>
					<a class="cus-border-bottom cus-border-left" href="../other/about_us.html">
						<img src="../resources/img/user_about.png" />
						<small class="language" language="guan_yu_wo_men"></small>
					</a>
					<a class="cus-border-bottom cus-border-left" href="../other/privacy_policy.html">
						<img src="../resources/img/user_security.png" />
						<small class="language" language="yin_si_zheng_ce"></small>
					</a>
					<a href="../other/exchange_policy.html">
						<img src="../resources/img/user_return.png" />
						<small class="language" language="shou_hou_zheng_ce"></small>
					</a>
					<a class="cus-border-left" href="../other/problems.html">
						<img src="../resources/img/user_problem.png" />
						<small class="language" language="chang_jian_wen_ti"></small>
					</a>
					<a class="cus-border-left" href="../other/feedback.html">
						<img src="../resources/img/user_customer.png" />
						<small class="language" language="yi_jian_jian_yi"></small>
					</a>
				</div>
			</div>
			
			<div class="template-split"></div>
			<div class="template-split"></div>
		</div>
	</body>
	<script src="../dists/mdui-0.4.3/js/mdui.js"></script>
	<script src="../dists/art-template/template-web.js"></script>
	<script src="../resources/js/echo.js"></script>
	<script src="../resources/js/common.js"></script>
	<script>
	  !function(f,b,e,v,n,t,s)
	  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
	  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
	  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
	  n.queue=[];t=b.createElement(e);t.async=!0;
	  t.src=v;s=b.getElementsByTagName(e)[0];
	  s.parentNode.insertBefore(t,s)}(window, document,'script',
	  'https://connect.facebook.net/en_US/fbevents.js');
	  fbq('init', commonConfig.getFbPiexId());
	  fbq('track', 'PageView');
	</script>
	
	<script id="seach-order-container" type="text/html">
		<% for(var i = 0 ; i < orderDTOs.length ; i++){ %>
		<div class="search-order-info-item">
			<div class="panel">
				<div class="panel-header">
					<%= $imports.language('ding_dan_xin_xi')%>(<%=orderDTOs[i].code%>)
					<span class="panel-header-subscript order-price salePrice"><%=orderDTOs[i].price%></span>
				</div>
				<div class="panel-body">
					<ul>
						<li>
							<span class="message-key"><%= $imports.language('ding_dan_zhuang_tai')%>:</span>
							<span class="message-value" style="color: #ff4142;"><%=orderDTOs[i].statusName%></span>
						</li>
						<li>
							<span class="message-key"><%= $imports.language('ding_gou_shi_jian')%>:</span>
							<span class="message-value"><%=$imports.formatterDate(orderDTOs[i].createdAt)%></span>
						</li>
					</ul>
				</div>
			</div>
			<div class="panel">
				<div class="panel-header"><%= $imports.language('di_zhi_xin_xi')%></div>
				<div class="panel-body">
					<ul>
						<li>
							<span class="message-key"><%= $imports.language('sjrxm')%></span>
							<span class="message-value"><%=orderDTOs[i].consignee%></span>
						</li>
						<li>
							<span class="message-key"><%= $imports.language('sjrdh')%></span>
							<span class="message-value"><%=orderDTOs[i].tel%></span>
						</li>
						<li>
							<span class="message-key"><%= $imports.language('sjrdzxq')%></span>
							<span class="message-value"><%=orderDTOs[i].city%> <%=orderDTOs[i].district%> <%=orderDTOs[i].details%></span>
						</li>
						<li>
							<span class="message-key"><%= $imports.language('ding_dan_bei_zhu')%></span>
							<span class="message-value"><%=orderDTOs[i].remark || '' %></span>
						</li>
					</ul>
				</div>
			</div>
			<div class="panel">
				<div class="panel-header"><%= $imports.language('spxq')%></div>
				<div class="panel-body">
					<ul>
						<%for (var j = 0; j < orderDTOs[i].orderProductDTOs.length; j++) {%>
						<li>
							<a href="../item/details.html?id=<%=orderDTOs[i].orderProductDTOs[j].productId%>"><img class="product-image" src="<%=orderDTOs[i].orderProductDTOs[j].productImageUrl%>" /></a>
							<span class="product-title"><%=orderDTOs[i].orderProductDTOs[j].productTitle%></span>
							<span class="product-skuName"><%=orderDTOs[i].orderProductDTOs[j].productSkuName%></span>
							<span class="product-price salePrice"><%=orderDTOs[i].orderProductDTOs[j].productPrice%></span>
							<span class="product-quantity"><%=orderDTOs[i].orderProductDTOs[j].quantity%></span>
						</li>
						<% } %>
					</ul>
				</div>
			</div>
			<div class="panel">
				<div class="panel-header"><%= $imports.language('fu_kuan_xin_xi')%></div>
				<div class="panel-body">
					<ul>
						<li>
							<span class="message-key"><%= $imports.language('zhi_fu_lei_xing')%>:</span>
							<span class="message-value"><%=orderDTOs[i].paymentName%></span>
						</li>
						<li>
							<span class="message-key"><%= $imports.language('yun_fei')%>:</span>
							<span class="message-value salePrice"><%=orderDTOs[i].freight%></span>
						</li>
						<%if(orderDTOs[i].promotions && orderDTOs[i].promotions[0] && orderDTOs[i].promotions[0].promotionPrice){%>
						<li>
							<span class="message-key"><%= $imports.language('you_hui')%>:</span>
							<span class="message-value" style="color: #ffad08;"><i class="salePrice" style="font-style: initial;"></i><%=orderDTOs[i].promotions[0].promotionPrice%></span>
						</li>
						<% } %>
						<li>
							<span class="message-key"><%= $imports.language('he_ji')%>:</span>
							<span class="message-value order-price salePrice"><%=orderDTOs[i].price%></span>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<% } %>
	</script>
	
	<script>
		var app = {
			datas : {
				searchCode: tools.getURLParam('searchCode')
			},
			methods: {
				goHome : function(){
					mdui.snackbar({message: 'เหมือนจะหาย...',position: 'top'});
					setTimeout(function () {
					   window.location.href = '../item/list.html';
					}, 2000);
					return false;
				},
				serachOrder: function(){
					var _searchCode = $$('.search-input').val().trim();
					if(_searchCode == ''){
						mdui.snackbar({message: language.text('cha_xun_wei_kong'), position: 'top',timeout:1500});
						return;
					}
					tools.loading();
					$$.ajax({
						url : commonConfig.websitePrefix() + '/api/shop/order/' + _searchCode,
						success : function(result){
							if(result.code == 1){
								if(result.datas.orderDTOs.length == 0){
									mdui.snackbar({message: language.text('cha_xun_wei_kong'), position: 'top',timeout:1500});
									return;
								}
								result.datas.orderDTOs.map(function(e){
									e.promotions = JSON.parse(e.promotions)
								})
								$$.each(result.datas.orderDTOs, function (index, orderDTO) {
									orderDTO.statusName = language.text(orderDTO.statusName);
									orderDTO.paymentName = language.text(orderDTO.paymentName);
								})
								$$('.search-order-infos').html(template('seach-order-container', {'orderDTOs': result.datas.orderDTOs}));
							}
						},
						error: function(xhr, textStatus) {
							if(xhr.status == 500 && JSON.parse(xhr.response) && JSON.parse(xhr.response).body && JSON.parse(xhr.response).body.message && JSON.parse(xhr.response).body.message == "No message available"){
								app.methods.goHome();
							}
						},complete: function(){tools.hideLoading();}
					});
					_monitor.addMonitor({'eventAims':'SEARCH_ORDER', 'eventName': 'CLICK', 'aimsCategory': 'EVENT'});
					fbq('track', 'Search', {'search_string' : _searchCode});
				},
				initSearchInput: function(){
					$$('.search-input').on('keyup', function(){
						if($$(this).val().trim().length > 0){
							$$('.search-input-button').css({
								opacity: 1
							})
						}else{
							$$('.search-input-button').css({
								opacity: .6
							})
						}
					})
					if(app.datas.searchCode && app.datas.searchCode != ''){
						$$('.search-input').val(app.datas.searchCode);
						$$('.search-input-button').css({
							opacity: 1
						})
						app.methods.serachOrder();
					}
				}
			},
			init : function(){
				app.methods.initSearchInput();
			}
		}
		$$(function(){
			app.init();
		});
	</script>
</html>
